	<div id="header">
		<div id="logo"><?php echo CHtml::encode(Yii::app()->name); ?></div>
	</div><!-- header -->
	<div id="mainmenu">
		<?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				array('label'=>'Home', 'url'=>array(UH::u('Site/index'))),
				array('label'=>'About', 'url'=>array(UH::u('Site/page'), 'view'=>'about')),
				array('label'=>'Contact', 'url'=>array(UH::u('Site/contact'))),
				array('label'=>'Login', 'url'=>array(UH::u('Site/login')), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array(UH::u('MusicLibrary/logout')), 'visible'=>!Yii::app()->user->isGuest)
			),
		)); ?>
	</div><!-- mainmenu -->
	<?php if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
		)); ?><!-- breadcrumbs -->
	<?php endif?>
	
	<?php
		/*$k=1; $arr = array();
		while ($k<500) {
			$in = URLHelper::EncodeId($k, true);
			foreach ($arr as $key=>$val)
				if ($in==$val)
					echo "collision!!!";
			$arr[$k] = $in;
		$k++;
		}
		echo "<pre>"; print_r($arr);*/
	?>
	<?=$content?>
	
	<div class="clear"></div>

	<div id="footer">
		Copyright &copy; <?php echo date('Y'); ?> by My Company.<br/>
		All Rights Reserved.<br/>
		<?php echo Yii::powered(); ?>
	</div><!-- footer -->
